﻿@{
    ViewBag.Title = "Activate";
    Layout = "~/Views/Shared/_UserManage.cshtml";
}

<style type="text/css">
    .logo {
        /*background-color: #0094ff;*/
        margin: 50px auto;
        margin-bottom: 10px;
        width: 250px;
        text-align: center;
    }

    .div_body {
        background-color: #faf7f7;
        margin: 200px auto;
        margin-top: 0px;
        width: 250px;
        padding: 30px;
        border-color: #808080;
    }

        .div_body div {
            margin: 5px auto;
            width: 200px;
        }

    .txt_user, .txt_pass, .txt_mail, .txt_Nickname {
        width: 200px;
        height: 20px;
    }

    .button {
        width: 75px;
        height: 25px;
    }
</style>

@{ ViewBag.Title = "获取激活码";}


<div class="logo">
    <a href="/">
        <span style="color:#be7a7a;font-size:30px">嗨 博客</span>
        <img src="~/Imgs/bubble_message_hi_64px_1189254_easyicon.net.png" />
    </a>
</div>
<div class="div_body">
    <div>激活码：</div>
    <div>
        <input type="text" class="txt_activate" />
        <div>
            <a style="font-size:11px" href="javascript:void()" onclick="getactivate()">重新获取激活码</a>
        </div>
    </div>
    <div style="margin-top:15px">
        <input class="button" type="button" value="激活" onclick="clickRegis()" />
    </div>
</div>

<script type="text/javascript">
    function clickRegis() {
        var txt_activate = $(".txt_activate").val();
        var dataJson = { "txt_activate": txt_activate };
        $.post("/UserManage/Activate", dataJson, function (data) {
            if (ShowAjaxResult(data)) {

            }
        }, "json");
    }

    function getactivate() {
        $.post("/UserManage/GetActivate", "", function (data) {
            if (ShowAjaxResult(data)) {

            }
        }, "json");
    }
</script>
